package com.chixing.day03_oop;

public class Student {
    private int stuId;
    private String stuName;


    //默认省略  无参构造函数 constructor
    public Student(){
        System.out.println(" 无参构造函数 constructor");
    }

    //有参构造函数
    public Student(int id,String name){
        this.stuId=id;
        this.stuName=name;
        System.out.println(id + "," + name);
    }


    public int getStuId() {
        return stuId;
    }

    public void setStuId(int stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }
}
